/**============================================================================
 Confidential Information - Limited distribution to authorized persons only.
 This software is protected as an unpublished work under the U.S. Copyright
 Act of 1976.

 Copyright (c) 2012, BluePhoenix Solutions, Inc. All rights reserved.
 ----------------------------------------------------------------------------
 file......: BaseException.java
 Author....: Vyacheslav Kovalyov
 Created...: 1/2/12

 Description:

 ============================================================================*/
package com.bphx.android.exception;

import android.content.Context;

import static com.bphx.android.R.string.errorWithMessage;

/**
 * @author Vyacheslav Kovalyov
 * @version 1.0
 */
public abstract class BaseException extends Exception {

    protected BaseException(Context context, int stringId) {
        super(context.getString(errorWithMessage, context.getString(stringId)));
    }

    protected BaseException(Context context, String message) {
        super(context.getString(errorWithMessage, message));
    }

    protected BaseException(Throwable throwable, String message) {
        super(message, throwable);
    }
}
